/** 
 * AbstractBattingInningsParser.java Created by iweerarathna on Aug 29, 2011.
 * 
 * Copyright (c) 2011 Virtusa Corporation. All Rights Reserved.<br><br>. 
 * 
 */
package org.uim.cricket.analyzer.parsers.batting;

import java.util.List;

import org.uim.cricket.entities.aggr.SingleInning;
import org.uim.cricket.entities.batting.BattingInning;

/**
 * TODO Class description goes here.
 * @version 
 * @author iweerarathna
 */
public abstract class AbstractBattingInningsParser {

    private BattingInningParsable battingParsable = null;
    
    public AbstractBattingInningsParser(BattingInningParsable theIBattingInningParsable) {
        this.battingParsable = theIBattingInningParsable;
    }
    
    public void setBattingParsable(BattingInningParsable battingParsable) {
        this.battingParsable = battingParsable;
    }
    
    public BattingInningParsable getBattingParsable() {
        return battingParsable;
    }
    
    public abstract List<BattingInning> parseAllBattingInnings(StringBuilder sb, SingleInning inning);
    
}
